import request from '@/utils/request'
export default {
  get(url, data = '') {
    return request({
      method: 'get',
      url,
      params: data
    })
  },
  post(url, data = '') {
    return request({
      method: 'post',
      url,
      data
    })
  },
  delete(url, data = '') {
    return request({
      method: 'delete',
      url,
      data
    })
  },
  put(url, data = '') {
    return request({
      method: 'put',
      url,
      data
    })
  }
}
